inherited frmSaleOrderTrack: TfrmSaleOrderTrack
  Left = 247
  Top = 102
  Caption = #23458#25143#35746#21333#36319#36394
  Position = poMainFormCenter
  PixelsPerInch = 96
  TextHeight = 12
  inherited pnlBottom: TPanel
    Top = 278
    Height = 51
    TabOrder = 2
    ExplicitTop = 278
    ExplicitHeight = 51
    inherited btnOK: TcxButton
      Left = 905
      Top = 11
      Anchors = [akTop, akRight]
      Caption = #36864#20986'(&E)'
      TabOrder = 7
      ExplicitLeft = 905
      ExplicitTop = 11
    end
    inherited btnCancel: TcxButton
      Left = 769
      Top = 11
      Anchors = [akTop, akRight]
      TabOrder = 6
      Visible = False
      ExplicitLeft = 769
      ExplicitTop = 11
    end
    object btnSelSaleOrder: TcxButton
      Tag = 210
      Left = 11
      Top = 11
      Width = 85
      Height = 25
      Caption = #36873#25321#38144#21806#35746#21333
      DropDownMenu = pmSelSOrder
      Kind = cxbkDropDownButton
      TabOrder = 1
      OnClick = btnSelSaleOrderClick
    end
    object btnMakeBill: TcxButton
      Left = 299
      Top = 11
      Width = 75
      Height = 25
      Caption = #19979#36798#19979#32423#21333#25454
      DropDownMenu = pmMakeBill
      Kind = cxbkDropDown
      TabOrder = 3
    end
    object btnExcel: TcxButton
      Left = 387
      Top = 11
      Width = 75
      Height = 25
      Caption = #23548#20986'Excel'
      TabOrder = 4
      OnClick = btnExcelClick
    end
    object rdgTrack: TcxRadioGroup
      Left = 104
      Top = 5
      Caption = #36319#36394#26041#24335
      Properties.Columns = 2
      Properties.Items = <
        item
          Caption = #36880#32423
        end
        item
          Caption = #22810#36873
        end>
      ItemIndex = 0
      TabOrder = 0
      OnClick = rdgTrackClick
      Height = 35
      Width = 105
    end
    object btnRefreshTrack: TcxButton
      Left = 213
      Top = 11
      Width = 75
      Height = 25
      Caption = #21047#26032
      TabOrder = 2
      Visible = False
      OnClick = btnRefreshTrackClick
    end
    object btnRefreshBill: TcxButton
      Left = 469
      Top = 11
      Width = 75
      Height = 25
      Caption = #21047#26032#21333#25454
      TabOrder = 5
      OnClick = btnRefreshBillClick
    end
  end
  inherited Panel1: TPanel
    Height = 67
    ExplicitHeight = 67
    inherited labFuncName: TLabel
      Top = 8
      Caption = #23458#25143#35746#21333#36319#36394
      Font.Color = clWindowText
      ExplicitTop = 8
    end
    inherited labFuncDesc: TLabel
      Left = 273
      Top = 8
      Width = 36
      Caption = #23458#25143#65306
      Font.Color = clWindowText
      ExplicitLeft = 273
      ExplicitTop = 8
      ExplicitWidth = 36
    end
    inherited img3: TImage
      Left = 927
      Top = 0
      Width = 65
      Height = 65
      ExplicitLeft = 927
      ExplicitTop = 0
      ExplicitWidth = 65
      ExplicitHeight = 65
    end
    inherited Bevel1: TBevel
      Top = 64
      ExplicitTop = 64
      ExplicitWidth = 992
    end
    object Label1: TLabel
      Left = 13
      Top = 30
      Width = 36
      Height = 12
      Caption = #20135#21697#65306
      Font.Charset = ANSI_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label2: TLabel
      Left = 424
      Top = 30
      Width = 36
      Height = 12
      Caption = #35268#26684#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label3: TLabel
      Left = 273
      Top = 30
      Width = 36
      Height = 12
      Caption = #21333#20301#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblp_code: TLabel
      Left = 52
      Top = 30
      Width = 48
      Height = 12
      Caption = #20135#21697#32534#30721
      Font.Charset = ANSI_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblunitname: TLabel
      Left = 311
      Top = 30
      Width = 24
      Height = 12
      Caption = #21333#20301
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblp_spec: TLabel
      Left = 462
      Top = 30
      Width = 24
      Height = 12
      Caption = #35268#26684
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label4: TLabel
      Left = 550
      Top = 30
      Width = 60
      Height = 12
      Caption = #35746#21333#25968#37327#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblqty: TLabel
      Left = 608
      Top = 30
      Width = 24
      Height = 12
      Caption = #25968#37327
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label6: TLabel
      Left = 718
      Top = 30
      Width = 60
      Height = 12
      Caption = #21457#36135#26085#26399#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblbalancedate: TLabel
      Left = 780
      Top = 30
      Width = 48
      Height = 12
      Caption = #21457#36135#26085#26399
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblReleased: TLabel
      Left = 550
      Top = 46
      Width = 60
      Height = 12
      Caption = #29983#20135#25968#37327#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object LableRel: TLabel
      Left = 237
      Top = 46
      Width = 72
      Height = 12
      Caption = #24050#38144#21806#25968#37327#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblrelationqty: TLabel
      Left = 311
      Top = 46
      Width = 60
      Height = 12
      Caption = #24050#38144#21806#25968#37327
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblReleasedqty: TLabel
      Left = 612
      Top = 46
      Width = 48
      Height = 12
      Caption = #29983#20135#25968#37327
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblCompleted: TLabel
      Left = 700
      Top = 46
      Width = 60
      Height = 12
      Caption = #23436#24037#25968#37327#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblCompletedqty: TLabel
      Left = 758
      Top = 46
      Width = 48
      Height = 12
      Caption = #23436#24037#25968#37327
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label12: TLabel
      Left = 549
      Top = 8
      Width = 60
      Height = 12
      Caption = #23458#25143#27424#27454#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblscamt: TLabel
      Left = 611
      Top = 8
      Width = 48
      Height = 12
      Caption = #23458#25143#27424#27454
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblforwordamt: TLabel
      Left = 779
      Top = 8
      Width = 36
      Height = 12
      Caption = #39044#25910#27454
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label7: TLabel
      Left = 729
      Top = 8
      Width = 48
      Height = 12
      Caption = #39044#25910#27454#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object Label5: TLabel
      Left = 376
      Top = 46
      Width = 84
      Height = 12
      Caption = #35745#21010#29983#20135#25968#37327#65306
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
    object lblMpsqty: TLabel
      Left = 456
      Top = 46
      Width = 72
      Height = 12
      Caption = #35745#21010#29983#20135#25968#37327
      Font.Charset = GB2312_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = #23435#20307
      Font.Style = []
      ParentFont = False
      Transparent = True
    end
  end
  object pnlMain: TPanel [2]
    Left = 0
    Top = 67
    Width = 548
    Height = 211
    Align = alClient
    BevelOuter = bvNone
    TabOrder = 1
    object pnlSaleOrder: TPanel
      Left = 0
      Top = 0
      Width = 283
      Height = 76
      Align = alLeft
      BevelOuter = bvNone
      TabOrder = 0
      object grdSOrder: TcxGrid
        Left = 0
        Top = 0
        Width = 283
        Height = 76
        Align = alClient
        PopupMenu = pmRefresh
        TabOrder = 0
        OnEnter = grdSaleSendoutEnter
        object viewSOrder: TcxGridDBTableView
          Tag = 210
          PopupMenu = pmRefresh
          OnDblClick = viewSOrderDblClick
          Navigator.Buttons.CustomButtons = <>
          OnFocusedRecordChanged = viewSOrderFocusedRecordChanged
          DataController.DataModeController.GridMode = True
          DataController.DataSource = MainDataSource
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsData.Deleting = False
          OptionsData.DeletingConfirmation = False
          OptionsData.Inserting = False
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 20
          Styles.Background = MainDM.bslBackGroup
          Styles.ContentEven = MainDM.bslBackGroup
          Styles.ContentOdd = MainDM.bsOdd
          Styles.Footer = MainDM.bsTitle
          Styles.Header = MainDM.bsTitle
          Styles.Selection = MainDM.bsSelect
          OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
          object viewSOrderchoice: TcxGridDBColumn
            DataBinding.FieldName = 'choice'
            Visible = False
            HeaderAlignmentHorz = taCenter
            Width = 35
          end
          object viewSOrderbcode: TcxGridDBColumn
            DataBinding.FieldName = 'm_bcode'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 100
          end
          object viewSOrderbdate: TcxGridDBColumn
            DataBinding.FieldName = 'm_bdate'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderp_name: TcxGridDBColumn
            DataBinding.FieldName = 'p_name'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderunitname: TcxGridDBColumn
            DataBinding.FieldName = 'unitname'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderquantity: TcxGridDBColumn
            DataBinding.FieldName = 'quantity'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderrelationqty: TcxGridDBColumn
            DataBinding.FieldName = 'relationqty'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderrelationassqty: TcxGridDBColumn
            DataBinding.FieldName = 'relationassqty'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderreleasedqty: TcxGridDBColumn
            DataBinding.FieldName = 'releasedqty'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderreleasedassqty: TcxGridDBColumn
            DataBinding.FieldName = 'releasedassqty'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrdercompletedqty: TcxGridDBColumn
            DataBinding.FieldName = 'completedqty'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
          end
          object viewSOrderbalancedate: TcxGridDBColumn
            DataBinding.FieldName = 'balancedate'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderpause: TcxGridDBColumn
            DataBinding.FieldName = 'pause'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrdercustom1: TcxGridDBColumn
            DataBinding.FieldName = 'custom1'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrdercustom2: TcxGridDBColumn
            DataBinding.FieldName = 'custom2'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrdercustom3: TcxGridDBColumn
            DataBinding.FieldName = 'custom3'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderm_scamt: TcxGridDBColumn
            DataBinding.FieldName = 'm_scamt'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderm_forwardamt: TcxGridDBColumn
            DataBinding.FieldName = 'm_forwardamt'
            HeaderAlignmentHorz = taCenter
            Options.Editing = False
            Width = 80
          end
          object viewSOrderlength: TcxGridDBColumn
            Caption = #38271
            DataBinding.FieldName = 'length'
            Width = 50
          end
          object viewSOrderwidth: TcxGridDBColumn
            Caption = #23485
            DataBinding.FieldName = 'width'
            Width = 50
          end
          object viewSOrderheight: TcxGridDBColumn
            Caption = #39640'/'#21402
            DataBinding.FieldName = 'height'
            Width = 50
          end
        end
        object lvlSOrder: TcxGridLevel
          GridView = viewSOrder
        end
      end
    end
    object sptSaleOrder: TcxSplitter
      Left = 283
      Top = 0
      Width = 8
      Height = 76
      Cursor = crHSplit
      HotZoneClassName = 'TcxXPTaskBarStyle'
      Control = pnlSaleOrder
      OnMoved = sptSaleOrderMoved
    end
    object pnlTrack: TPanel
      Left = 291
      Top = 0
      Width = 257
      Height = 76
      Align = alClient
      BevelOuter = bvNone
      TabOrder = 2
      object pgcTrack: TcxPageControl
        Left = 0
        Top = 0
        Width = 257
        Height = 76
        Align = alClient
        TabOrder = 0
        Properties.ActivePage = tsSale
        Properties.CustomButtons.Buttons = <>
        OnPageChanging = pgcTrackPageChanging
        ClientRectBottom = 76
        ClientRectRight = 257
        ClientRectTop = 23
        object tsSale: TcxTabSheet
          Caption = #38144#21806#36319#36394
          ImageIndex = 0
          object grdSaleSendout: TcxGrid
            Left = 0
            Top = 0
            Width = 183
            Height = 53
            Align = alLeft
            PopupMenu = pmRefresh
            TabOrder = 0
            OnEnter = grdSaleSendoutEnter
            object viewSaleSendout: TcxGridDBTableView
              Tag = 220
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewSaleSendoutFocusedRecordChanged
              DataController.DataModeController.GridMode = True
              DataController.DataSource = dsSaleSendout
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bslBackGroup
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlSaleSendout: TcxGridLevel
              GridView = viewSaleSendout
            end
          end
          object grdSale: TcxGrid
            Left = 191
            Top = 0
            Width = 241
            Height = 53
            Align = alClient
            PopupMenu = pmRefresh
            TabOrder = 2
            OnEnter = grdSaleSendoutEnter
            object viewSale: TcxGridDBTableView
              Tag = 240
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewSaleFocusedRecordChanged
              DataController.DataModeController.GridMode = True
              DataController.DataSource = dsSale
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bslBackGroup
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlSale: TcxGridLevel
              GridView = viewSale
            end
          end
          object sptSaleRight: TcxSplitter
            Left = -12
            Top = 0
            Width = 8
            Height = 53
            Cursor = crHSplit
            HotZoneClassName = 'TcxSimpleStyle'
            AlignSplitter = salRight
            Control = pnlSaleRight
          end
          object sptSaleSendout: TcxSplitter
            Left = 183
            Top = 0
            Width = 8
            Height = 53
            Cursor = crHSplit
            HotZoneClassName = 'TcxSimpleStyle'
            Control = grdSaleSendout
          end
          object pnlSaleRight: TPanel
            Left = -4
            Top = 0
            Width = 261
            Height = 53
            Align = alRight
            BevelOuter = bvNone
            TabOrder = 4
            object grdGath: TcxGrid
              Left = 0
              Top = 0
              Width = 261
              Height = 105
              Align = alClient
              TabOrder = 0
              OnEnter = grdSaleSendoutEnter
              object viewGath: TcxGridDBTableView
                Tag = 500
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                DataController.DataModeController.GridMode = True
                DataController.DataSource = dsGath
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bslBackGroup
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlGath: TcxGridLevel
                GridView = viewGath
              end
            end
            object grdSaleDepot: TcxGrid
              Left = 0
              Top = -111
              Width = 261
              Height = 164
              Align = alBottom
              TabOrder = 2
              OnEnter = grdSaleSendoutEnter
              object viewSaleDepot: TcxGridDBTableView
                Tag = 300
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                DataController.DataModeController.GridMode = True
                DataController.DataSource = dsDepot
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bslBackGroup
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlSaleDepot: TcxGridLevel
                GridView = viewSaleDepot
              end
            end
            object sptSaleDepot: TcxSplitter
              Left = 0
              Top = -119
              Width = 261
              Height = 8
              Cursor = crVSplit
              HotZoneClassName = 'TcxSimpleStyle'
              AlignSplitter = salBottom
              Control = grdSaleDepot
            end
          end
        end
        object tsPurchase: TcxTabSheet
          Caption = #37319#36141#36319#36394
          ImageIndex = 1
          ExplicitTop = 0
          ExplicitWidth = 0
          ExplicitHeight = 0
          object grdPurValue: TcxGrid
            Left = 0
            Top = 0
            Width = 183
            Height = 277
            Align = alLeft
            PopupMenu = pmRefresh
            TabOrder = 0
            OnEnter = grdSaleSendoutEnter
            object viewPurValue: TcxGridDBTableView
              Tag = 130
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewPurValueFocusedRecordChanged
              DataController.DataSource = dsPurValue
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlPurValue: TcxGridLevel
              GridView = viewPurValue
            end
          end
          object cxSplitter1: TcxSplitter
            Left = 183
            Top = 0
            Width = 8
            Height = 277
            HotZoneClassName = 'TcxSimpleStyle'
            Control = grdPurValue
          end
          object pnlPurRight: TPanel
            Left = 440
            Top = 0
            Width = 261
            Height = 277
            Align = alRight
            BevelOuter = bvNone
            TabOrder = 4
            object grdPay: TcxGrid
              Left = 0
              Top = 0
              Width = 261
              Height = 105
              Align = alClient
              TabOrder = 0
              OnEnter = grdSaleSendoutEnter
              object viewPay: TcxGridDBTableView
                Tag = 510
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                DataController.DataSource = dsPay
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bsEven
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlPay: TcxGridLevel
                GridView = viewPay
              end
            end
            object grdPurDepot: TcxGrid
              Left = 0
              Top = 113
              Width = 261
              Height = 164
              Align = alBottom
              TabOrder = 2
              OnEnter = grdSaleSendoutEnter
              object viewPurDepot: TcxGridDBTableView
                Tag = 300
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                DataController.DataSource = dsDepot
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bsEven
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlPurDepot: TcxGridLevel
                GridView = viewPurDepot
              end
            end
            object cxSplitter2: TcxSplitter
              Left = 0
              Top = 105
              Width = 8
              Height = 8
              HotZoneClassName = 'TcxSimpleStyle'
              AlignSplitter = salBottom
              Control = grdPurDepot
            end
          end
          object cxSplitter3: TcxSplitter
            Left = 432
            Top = 0
            Width = 8
            Height = 277
            HotZoneClassName = 'TcxSimpleStyle'
            AlignSplitter = salRight
            Control = pnlPurRight
          end
          object grdPurchase: TcxGrid
            Left = 191
            Top = 0
            Width = 241
            Height = 277
            Align = alClient
            PopupMenu = pmRefresh
            TabOrder = 2
            OnEnter = grdSaleSendoutEnter
            object viewPurchase: TcxGridDBTableView
              Tag = 140
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewPurchaseFocusedRecordChanged
              DataController.DataSource = dsPurchase
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlPurchase: TcxGridLevel
              GridView = viewPurchase
            end
          end
        end
        object tsMachining: TcxTabSheet
          Caption = #29983#20135#36319#36394
          ImageIndex = 2
          ExplicitTop = 0
          ExplicitWidth = 0
          ExplicitHeight = 0
          object grdMachining: TcxGrid
            Left = 0
            Top = 0
            Width = 183
            Height = 277
            Align = alLeft
            PopupMenu = pmRefresh
            TabOrder = 0
            OnEnter = grdSaleSendoutEnter
            object viewMachining: TcxGridDBTableView
              Tag = 1010
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewMachiningFocusedRecordChanged
              DataController.DataSource = dsMnfMachining
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlMachining: TcxGridLevel
              GridView = viewMachining
            end
          end
          object sptMachining: TcxSplitter
            Left = 183
            Top = 0
            Width = 8
            Height = 277
            HotZoneClassName = 'TcxSimpleStyle'
            Control = grdMachining
          end
          object pnlMnfRight: TPanel
            Left = 440
            Top = 0
            Width = 261
            Height = 277
            Align = alRight
            BevelOuter = bvNone
            TabOrder = 4
            object grdDraw: TcxGrid
              Left = 0
              Top = 0
              Width = 261
              Height = 105
              Align = alClient
              TabOrder = 0
              OnEnter = grdSaleSendoutEnter
              object viewDraw: TcxGridDBTableView
                Tag = 320
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                OnFocusedRecordChanged = viewDrawFocusedRecordChanged
                DataController.DataSource = dsDraw
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bsEven
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlDraw: TcxGridLevel
                GridView = viewDraw
              end
            end
            object grdMnfDepot: TcxGrid
              Left = 0
              Top = 113
              Width = 261
              Height = 164
              Align = alBottom
              TabOrder = 2
              OnEnter = grdSaleSendoutEnter
              object viewMnfDepot: TcxGridDBTableView
                Tag = 300
                PopupMenu = pmRefresh
                OnDblClick = viewSOrderDblClick
                Navigator.Buttons.CustomButtons = <>
                DataController.DataSource = dsDepot
                DataController.Summary.DefaultGroupSummaryItems = <>
                DataController.Summary.FooterSummaryItems = <>
                DataController.Summary.SummaryGroups = <>
                OptionsView.GroupByBox = False
                OptionsView.Indicator = True
                OptionsView.IndicatorWidth = 20
                Styles.Background = MainDM.bslBackGroup
                Styles.ContentEven = MainDM.bsEven
                Styles.ContentOdd = MainDM.bsOdd
                Styles.Footer = MainDM.bsTitle
                Styles.Header = MainDM.bsTitle
                Styles.Selection = MainDM.bsSelect
                OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
              end
              object lvlMnfDepot: TcxGridLevel
                GridView = viewMnfDepot
              end
            end
            object cxSplitter4: TcxSplitter
              Left = 0
              Top = 105
              Width = 8
              Height = 8
              HotZoneClassName = 'TcxSimpleStyle'
              AlignSplitter = salBottom
              Control = grdMnfDepot
            end
          end
          object cxSplitter5: TcxSplitter
            Left = 432
            Top = 0
            Width = 8
            Height = 277
            HotZoneClassName = 'TcxSimpleStyle'
            AlignSplitter = salRight
            Control = pnlMnfRight
          end
          object grdCheckAccept: TcxGrid
            Left = 191
            Top = 0
            Width = 241
            Height = 277
            Align = alClient
            PopupMenu = pmRefresh
            TabOrder = 2
            OnEnter = grdSaleSendoutEnter
            object viewCheckAccept: TcxGridDBTableView
              Tag = 1020
              OnDblClick = viewSOrderDblClick
              Navigator.Buttons.CustomButtons = <>
              OnFocusedRecordChanged = viewCheckAcceptFocusedRecordChanged
              DataController.DataSource = dsMnfCheckaccept
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.Indicator = True
              OptionsView.IndicatorWidth = 20
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
            end
            object lvlCheckAccept: TcxGridLevel
              GridView = viewCheckAccept
            end
          end
        end
      end
    end
    object pnlTrackInfo: TPanel
      Left = 0
      Top = 84
      Width = 548
      Height = 127
      Align = alBottom
      BevelOuter = bvNone
      TabOrder = 4
      object grdTrackInfo: TcxGrid
        Left = 0
        Top = 0
        Width = 548
        Height = 127
        Align = alClient
        TabOrder = 0
        object viewTrackInfo: TcxGridDBTableView
          PopupMenu = pmRefresh
          OnDblClick = viewSOrderDblClick
          Navigator.Buttons.CustomButtons = <>
          DataController.DataModeController.GridMode = True
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsData.CancelOnExit = False
          OptionsData.Deleting = False
          OptionsData.DeletingConfirmation = False
          OptionsData.Editing = False
          OptionsData.Inserting = False
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 20
          Styles.Background = MainDM.bslBackGroup
          Styles.ContentEven = MainDM.bslBackGroup
          Styles.ContentOdd = MainDM.bsOdd
          Styles.Footer = MainDM.bsTitle
          Styles.Header = MainDM.bsTitle
          Styles.Selection = MainDM.bsSelect
          OnCustomDrawIndicatorCell = viewTrackInfoCustomDrawIndicatorCell
        end
        object lvlTrackInfo: TcxGridLevel
          GridView = viewTrackInfo
        end
      end
    end
    object sptTrackInfo: TcxSplitter
      Left = 0
      Top = 76
      Width = 548
      Height = 8
      Cursor = crVSplit
      HotZoneClassName = 'TcxXPTaskBarStyle'
      AlignSplitter = salBottom
      Control = pnlTrackInfo
    end
  end
  inherited MainDataSource: TDataSource
    DataSet = cdsSaleOrder
    Left = 82
    Top = 155
  end
  object qrySaleSendout: TUniQuery
    Connection = MainDM.UniConn
    Left = 304
    Top = 85
  end
  object cdsSaleOrder: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 56
    Top = 81
    object cdsSaleOrderchoice: TBooleanField
      DisplayLabel = #36873#25321
      FieldName = 'choice'
    end
    object cdsSaleOrderbid: TIntegerField
      FieldName = 'bid'
    end
    object cdsSaleOrderm_bcode: TStringField
      DisplayLabel = #38144#21806#35746#21333'  '#32534#21495
      FieldName = 'm_bcode'
      Size = 40
    end
    object cdsSaleOrderm_bdate: TDateTimeField
      DisplayLabel = #26085#26399
      FieldName = 'm_bdate'
    end
    object cdsSaleOrderproductid: TIntegerField
      DisplayLabel = #36135#21697
      FieldName = 'productid'
    end
    object cdsSaleOrderp_name: TStringField
      DisplayLabel = #36135#21697#21517#31216
      FieldName = 'p_name'
      Size = 60
    end
    object cdsSaleOrderp_code: TStringField
      DisplayLabel = #36135#21697#32534#30721
      FieldName = 'p_code'
      Size = 40
    end
    object cdsSaleOrderp_spec: TStringField
      DisplayLabel = #35268#26684
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsSaleOrderbno: TIntegerField
      FieldName = 'bno'
    end
    object cdsSaleOrderunitid: TIntegerField
      FieldName = 'unitid'
    end
    object cdsSaleOrderunitname: TStringField
      DisplayLabel = #21333#20301
      FieldName = 'unitname'
      Size = 60
    end
    object cdsSaleOrderquantity: TFloatField
      DisplayLabel = #25968#37327
      FieldName = 'quantity'
    end
    object cdsSaleOrderrelationqty: TFloatField
      DisplayLabel = #38144#21806#25968#37327
      FieldName = 'relationqty'
    end
    object cdsSaleOrderrelationassqty: TFloatField
      DisplayLabel = #38144#21806#36741#21161#25968#37327
      FieldName = 'relationassqty'
    end
    object cdsSaleOrdermpsqty: TFloatField
      DisplayLabel = #35745#21010#29983#20135#25968#37327
      FieldName = 'mpsqty'
    end
    object cdsSaleOrderreleasedqty: TFloatField
      DisplayLabel = #29983#20135#25968#37327
      FieldName = 'releasedqty'
    end
    object cdsSaleOrderreleasedassqty: TFloatField
      DisplayLabel = #29983#20135#36741#21161#25968#37327
      FieldName = 'releasedassqty'
    end
    object cdsSaleOrdercompletedqty: TFloatField
      DisplayLabel = #23436#24037#25968#37327
      FieldName = 'completedqty'
    end
    object cdsSaleOrderpause: TBooleanField
      DisplayLabel = #20013#27490
      FieldName = 'pause'
    end
    object cdsSaleOrdercustom1: TStringField
      DisplayLabel = #33258#23450#20041'1'
      FieldName = 'custom1'
      Size = 200
    end
    object cdsSaleOrdercustom2: TStringField
      DisplayLabel = #33258#23450#20041'2'
      FieldName = 'custom2'
      Size = 200
    end
    object cdsSaleOrdercustom3: TStringField
      DisplayLabel = #33258#23450#20041'3'
      FieldName = 'custom3'
      Size = 200
    end
    object cdsSaleOrdertraderid: TIntegerField
      FieldName = 'traderid'
    end
    object cdsSaleOrdert_name: TStringField
      DisplayLabel = #23458#25143#21517#31216
      FieldName = 't_name'
      Size = 60
    end
    object cdsSaleOrdert_code: TStringField
      DisplayLabel = #23458#25143#32534#30721
      FieldName = 't_code'
      Size = 60
    end
    object cdsSaleOrderbtype: TIntegerField
      FieldName = 'btype'
    end
    object cdsSaleOrderbalancedate: TDateTimeField
      DisplayLabel = #21457#36135#26085#26399
      FieldName = 'balancedate'
    end
    object cdsSaleOrderm_scamt: TFloatField
      DisplayLabel = #23458#25143#27424#27454
      FieldName = 'm_scamt'
    end
    object cdsSaleOrderm_forwardamt: TFloatField
      DisplayLabel = #39044#25910#27454
      FieldName = 'm_forwardamt'
    end
    object cdsSaleOrderm_bkind: TIntegerField
      FieldName = 'm_bkind'
    end
    object cdsSaleOrderlength: TFloatField
      FieldName = 'length'
    end
    object cdsSaleOrderwidth: TFloatField
      FieldName = 'width'
    end
    object cdsSaleOrderheight: TFloatField
      FieldName = 'height'
    end
  end
  object dsSaleSendout: TDataSource
    DataSet = qrySaleSendout
    Left = 363
    Top = 100
  end
  object dsMnfMachining: TDataSource
    DataSet = qryMnfMachining
    Left = 367
    Top = 248
  end
  object dsPurchase: TDataSource
    DataSet = qryPurchase
    Left = 563
    Top = 184
  end
  object dsPurValue: TDataSource
    DataSet = qryPurValue
    Left = 355
    Top = 172
  end
  object dsSale: TDataSource
    DataSet = qrySale
    Left = 559
    Top = 108
  end
  object dsDepot: TDataSource
    DataSet = qryDepot
    Left = 951
    Top = 252
  end
  object dsGath: TDataSource
    DataSet = qryGath
    Left = 755
    Top = 80
  end
  object dsDraw: TDataSource
    DataSet = qryDraw
    Left = 955
    Top = 84
  end
  object dsMnfCheckaccept: TDataSource
    DataSet = qryMnfCheckaccept
    Left = 579
    Top = 248
  end
  object qryPurchase: TUniQuery
    Connection = MainDM.UniConn
    Left = 512
    Top = 169
  end
  object qrySale: TUniQuery
    Connection = MainDM.UniConn
    Left = 508
    Top = 97
  end
  object qryDepot: TUniQuery
    Connection = MainDM.UniConn
    Left = 896
    Top = 241
  end
  object qryGath: TUniQuery
    Connection = MainDM.UniConn
    Left = 720
    Top = 65
  end
  object qryMnfCheckaccept: TUniQuery
    Connection = MainDM.UniConn
    Left = 508
    Top = 233
  end
  object qryDraw: TUniQuery
    Connection = MainDM.UniConn
    Left = 920
    Top = 69
  end
  object qryPurValue: TUniQuery
    Connection = MainDM.UniConn
    Left = 300
    Top = 157
  end
  object qryMnfMachining: TUniQuery
    Connection = MainDM.UniConn
    Left = 308
    Top = 233
  end
  object qryPay: TUniQuery
    Connection = MainDM.UniConn
    Left = 820
    Top = 65
  end
  object dsPay: TDataSource
    DataSet = qryPay
    Left = 851
    Top = 80
  end
  object qryDynDtl: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select * from ts_DynamicEditFormDtl where dt_editformid=:formid ' +
        'and dt_layoutid=:layoutid '
      '  order by dt_fieldtype,dt_order')
    Left = 20
    Top = 469
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'formid'
        Value = nil
      end
      item
        DataType = ftUnknown
        Name = 'layoutid'
        Value = nil
      end>
  end
  object dlgSaveExportExcel: TSaveDialog
    Filter = 'Excel|.xls'
    Left = 393
    Top = 481
  end
  object pmMakeBill: TPopupMenu
    OnPopup = pmMakeBillPopup
    Left = 315
    Top = 481
  end
  object cdsBillFlow: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 316
    Top = 437
  end
  object pmRefresh: TPopupMenu
    OnPopup = pmRefreshPopup
    Left = 684
    Top = 425
    object muExcel: TMenuItem
      Caption = #23548#20986'Excel'
      OnClick = btnExcelClick
    end
    object N2: TMenuItem
      Caption = '-'
    end
    object muRefresh: TMenuItem
      Caption = #21047#26032#21333#25454
      OnClick = btnRefreshBillClick
    end
    object N1: TMenuItem
      Caption = '-'
    end
    object muDeleteSOrder: TMenuItem
      Caption = #21024#38500#35746#21333#26126#32454
    end
    object muEmptySOrder: TMenuItem
      Caption = #28165#31354#35746#21333
    end
  end
  object pmSelSOrder: TPopupMenu
    Left = 24
    Top = 421
    object muAllSOrder: TMenuItem
      Caption = #20840#37096#35746#21333
      OnClick = muAllSOrderClick
    end
    object muExecing: TMenuItem
      Tag = 1
      Caption = #22312#25191#34892#35746#21333
      OnClick = muAllSOrderClick
    end
    object muCompleted: TMenuItem
      Tag = 2
      Caption = #24050#23436#25104#35746#21333
      OnClick = muAllSOrderClick
    end
  end
  object cxStyleRepository1: TcxStyleRepository
    Left = 104
    Top = 398
    PixelsPerInch = 96
    object bsSelect: TcxStyle
      AssignedValues = [svColor]
      Color = clGradientActiveCaption
    end
    object bsNormal: TcxStyle
      AssignedValues = [svColor]
      Color = clWindow
    end
  end
end
